#include "mainenvironment.h"
#include "ui_mainenvironment.h"
#include <qtoolbutton.h>

MainEnvironment::MainEnvironment(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MainEnvironment)
{
    ui->setupUi(this);
}

MainEnvironment::~MainEnvironment()
{
    delete ui;
}

void MainEnvironment::on_btnAlumnos_clicked()
{
    SubWindow * Hijo = new SubWindow;
    Hijo->setMinimumHeight(100);
    Hijo->setMinimumWidth(300);
    ui->mdiArea->addSubWindow(Hijo);
    Hijo->show();

    // QMdiSubWindow *activeSubWindow = mdiArea->activeSubWindow();
    // ventana = qobject_cast<MdiChild *>(activeSubWindow->widget());
}




